import request from '@/utils/request'

// professions search 专业查找
export function getProfessionList(data) {
  return request({
    url: '/professions/search',
    method: 'post',
    data
  })
}

// professions/add 专业新增
export function addProfession(data) {
  return request({
    url: '/professions/add',
    method: 'post',
    data
  })
}

// professions delete 专业删除
export function deleteProfession(params) {
  return request({
    url: '/professions/delete',
    method: 'post',
    params
  })
}

// professions update 专业更新
export function updateProfession(data) {
  return request({
    url: '/professions/update',
    method: 'post',
    data
  })
}

// 获取所有专业
export function getAllProfession() {
  return request({
    url: '/professions/get',
    method: 'get'
  })
}
